package service;

import org.springframework.transaction.annotation.Transactional;

import exceptions.UserNotFoundException;

/**
 * Interface for a LoginService.
 * @author Andre Melo
 * @author Marcus Leite 
 * @author Sergio Danilo
 *
 */
@Transactional
public interface LoginService {

	/**
	 * Verify if the login and password match
	 * 
	 * @param login The login of the user
	 * @param psswd The password of the user
	 * @return True if login and password match, false otherwise
	 * @throws UserNotFoundException
	 */
	boolean validation(String login, String psswd) throws UserNotFoundException;

	/**
	 * Get the instance of UserService.
	 * @return Instance of UserService.
	 */
	UserService getUserService();

	/**
	 * Set the user service.
	 * @param userService The user service
	 */
	void setUserService(UserService userService);
	
}
